package com.student.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @BelongsProject: webTest01
 * @BelongsPackage: com.com.com.cykj.dto
 * @Author: 小徐
 * @CreateTime: 2024-08-22 09:46
 * @Description: TODO
 * @Version: 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ResponseDto {
    private int code;
    private String msg;
    private Object data;

    public static ResponseDto success(Object obj){
        return new ResponseDto(1,"success",obj);
    }
    public static ResponseDto error(Object obj){
        return new ResponseDto(0,"出错啦",obj);
    }


}